import { DefaultOptionType } from "antd/es/select";

export class OptionsUtil {
  static getSimpleTreeData(data: DefaultOptionType[]) {
    return [{ label: "全部", value: "all", children: data }];
  }
  static getSimpleData(data: DefaultOptionType[]) {
    return [{ label: "全部", value: "" }, ...data];
  }
}
